package com.linkgie.galaxyframework.persistence;

import com.linkgie.galaxyframework.utils.ApplicationException;
import com.linkgie.galaxyframework.utils.RuntimeStatus;

public class PersistentException extends ApplicationException {
	
	private static final long serialVersionUID = 5242437889864381339L;


	public PersistentException() {
	}
	
	public PersistentException(String message) {
		super(message);
	}
	
	public PersistentException(Throwable cause) {
		super(cause.getMessage(), cause);
	}
	
	public PersistentException(String message, Throwable cause) {
		super(message, cause);
	}
	
	public PersistentException(int code, String message) {
		super(code, message);
	}
	
	
	public PersistentException(int code, Throwable cause) {
		super(cause.getMessage(), cause);
	}
	
	
	public PersistentException(int code, String message, Throwable cause) {
		super(code, message, cause);
	}
	
	public PersistentException(RuntimeStatus status) {
		super(status, status.DESCRIPTION);
	}
	
	
	public PersistentException(RuntimeStatus status, String message) {
		super(status, message);
	}
	
	
	public PersistentException(RuntimeStatus status, Throwable cause) {
		super(status, cause.getMessage(), cause);
	}
	
	
	public PersistentException(RuntimeStatus status, String message, Throwable cause) {
		super(status, message, cause);
	}
	
}
